Integrand size = 23, antiderivative size = 116 \[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \sin (c+d x)}{3 b d \sqrt {b \sec (c+d x)}} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3872, 3854, 3856, 2720, 2719} \[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \sin (c+d x)}{3 b d \sqrt {b \sec (c+d x)}}+\frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3854
Rule 3856
Rule 3872
Rubi steps \begin{align*} \text {integral}& = A \int \frac {1}{(b \sec (c+d x))^{3/2}} \, dx+\frac {B \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx}{b} \\ & = \frac {2 A \sin (c+d x)}{3 b d \sqrt {b \sec (c+d x)}}+\frac {A \int \sqrt {b \sec (c+d x)} \, dx}{3 b^2}+\frac {B \int \sqrt {\cos (c+d x)} \, dx}{b \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \\ & = \frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 A \sin (c+d x)}{3 b d \sqrt {b \sec (c+d x)}}+\frac {\left (A \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b^2} \\ & = \frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \sin (c+d x)}{3 b d \sqrt {b \sec (c+d x)}} \\ \end{align*}
Time = 0.40 (sec) , antiderivative size = 86, normalized size of antiderivative = 0.74 \[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {\sec ^2(c+d x) \left (6 B \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+A \left (2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\sin (2 (c+d x))\right )\right )}{3 d (b \sec (c+d x))^{3/2}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 12.00 (sec) , antiderivative size = 595, normalized size of antiderivative = 5.13
method | result | size |
parts | \(-\frac {2 A \left (i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-\sin \left (d x +c \right )\right )}{3 d \sqrt {b \sec \left (d x +c \right )}\, b}+\frac {2 B \left (i \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1}\, \sqrt {-\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1}\, \sqrt {\left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1\right ) \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )-i \sqrt {\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1}\, \sqrt {-\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1}\, \sqrt {\left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1\right ) \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right )}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+\sqrt {\left (1-\cos \left (d x +c \right )\right )^{4} \csc \left (d x +c \right )^{4}-1}\, \left (1-\cos \left (d x +c \right )\right )^{3} \csc \left (d x +c \right )^{3}-\sqrt {\left (1-\cos \left (d x +c \right )\right )^{4} \csc \left (d x +c \right )^{4}-1}\, \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )\right )}{b d \sqrt {\left (1-\cos \left (d x +c \right )\right )^{4} \csc \left (d x +c \right )^{4}-1}\, \left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1\right ) \sqrt {-\frac {\left (\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}+1\right ) b}{\left (1-\cos \left (d x +c \right )\right )^{2} \csc \left (d x +c \right )^{2}-1}}}\) | \(595\) |
default | \(-\frac {2 \left (i A \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \cos \left (d x +c \right )+3 i B \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \cos \left (d x +c \right )-3 i B \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \cos \left (d x +c \right )+2 i A \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}+6 i B \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}-6 i B \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}+i A \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sec \left (d x +c \right )+3 i B \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sec \left (d x +c \right )-3 i B \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticE}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sec \left (d x +c \right )-A \cos \left (d x +c \right ) \sin \left (d x +c \right )-A \sin \left (d x +c \right )-3 B \sin \left (d x +c \right )\right )}{3 b d \left (\cos \left (d x +c \right )+1\right ) \sqrt {b \sec \left (d x +c \right )}}\) | \(603\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 150, normalized size of antiderivative = 1.29 \[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 \, A \sqrt {\frac {b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) - i \, \sqrt {2} A \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} A \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 3 i \, \sqrt {2} B \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 i \, \sqrt {2} B \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{3 \, b^{2} d} \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int \frac {A + B \sec {\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int { \frac {B \sec \left (d x + c\right ) + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int { \frac {B \sec \left (d x + c\right ) + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sec (c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}}{{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]